package com.usian.comment.repository;

import com.usian.model.comment.pojos.ApComment;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface ApCommentRepository extends MongoRepository<ApComment,String> {

    List<ApComment>findByEntryIdOrderByCreatedTimeDesc(Long entryId, PageRequest pageRequest);
}
